package com.babster631;

import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.item.EnumArmorMaterial;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.IArmorTextureProvider;

import com.babster631folder2.babster631modbase;

public class thunderarmor extends ItemArmor implements IArmorTextureProvider
{

    private Object iconIndex;
    //THis is used to get waht material the armor is made from
    public thunderarmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) 
    {
            super(par1, par2EnumArmorMaterial, par3, par4);
            // TODO Auto-generated constructor stub
    }

    /*public String getTextureFile()
    {
            return "/babster631modbase/textures/items.png";
    }*/
   
    public String getArmorTextureFile(ItemStack itemstack)
    {
    	//This is used to get the armor texture on the player
            if(itemstack.itemID == babster631modbase.helmetthunder.itemID || itemstack.itemID == babster631modbase.chestplatethunder.itemID || itemstack.itemID == babster631modbase.bootsthunder.itemID)
            {
                    return "/mods/babster631modbase/textures/items/thunderArmor1.fw.png";
            }
            if(itemstack.itemID == babster631modbase.legsthunder.itemID)
            {
                    return "/mods/babster631modbase/textures/items/thunderArmor2.fw.png";
            }
           
            else return null;
            //return "/PabiModBase/textures/items";
    }
   //This is used to get the icons of the armor
	public void registerIcons(IconRegister iconReg) 
	{
	    if(this.itemID == babster631modbase.bootsthunder.itemID)
	    {
	    	itemIcon = iconReg.registerIcon("babster631modbase:bootsthunder.fw");
	        
	    }
	    else if(this.itemID == babster631modbase.chestplatethunder.itemID)
	    {
	    	itemIcon = iconReg.registerIcon("babster631modbase:chestplatethunder.fw");
	    }
	    
	    else if(this.itemID == babster631modbase.legsthunder.itemID)
	    {
	    	itemIcon = iconReg.registerIcon("babster631modbase:leggignsthunder.fw");
	    }
	    else if(this.itemID == babster631modbase.helmetthunder.itemID)
	    {
		    itemIcon = iconReg.registerIcon("babster631modbase:helmetthunder");
	    }
	}
	
}
